import { createApp } from 'vue';
import './style.css';
import 'animate.css';
import App from './App.vue';
import router from './router/index';
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/display.css';
import '@/assets/fonts/iconfont.css';
import { i18n } from '@/i18n';

const pinia = createPinia();
const app = createApp(App);

const api = process.env.NODE_ENV == 'production' ? `https://axie.ours.pro/axie-1` : `http://39.99.146.161/axie-1`;
app.config.globalProperties.$api = api;

app.use(pinia).use(router).use(i18n).use(ElementPlus).mount('#app');
